PgFont.deserialize

Loads data previously created via [method@Pango.Font.serialize].

For a discussion of the supported format, see that function.

Note: to verify that the returned font is identical to the one that was serialized, you can compare @bytes to the result of serializing the font again.

class PgFont
static
deserialize

Parameters

context PgContext

a PangoContext

bytes Bytes

the bytes containing the data

Return Value

Type: PgFont

a new PangoFont

Throws

GException on failure.

Meta

Since

1.50